﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public  class CustomerBLL
    {
        private CustomerDAL dal;
        public CustomerBLL()
        {
            dal = new CustomerDAL();
        }
        /// <summary>
        /// 数据新增方法实现
        /// </summary>
        /// <param name="bo"></param>
        /// <returns></returns>
        public bool Insert(Customer bo)
        {
            return dal.Insert(bo );
        }
        public bool Update(Customer bo)
        {
            return dal.Update(bo );
        }
        public bool Delete(Customer bo)
        {
            return dal.Delete(bo);
        }
        public Customer FindByID(string id)
        {
            return dal.FindByID(id);
        }/// <summary>
         /// 数据列表实现
         /// </summary>
         /// <returns></returns>
        public List<Customer> GetList()
        {
            return dal.GetList();
        }
    }
}
